package com.example.imtoken.modules.main.wallet.details.trade.details.share

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.example.imtoken.core.base.BaseViewModel
import com.example.imtoken.entitys.http.TransactionsEntityItem

class TransferDetailsShareDialogViewModel : BaseViewModel() {

    private val _data = MutableLiveData<TransactionsEntityItem>()
    val data: LiveData<TransactionsEntityItem>
        get() = _data

    fun setData(transactionsEntityItem: TransactionsEntityItem) {
        if (_data.value == null) _data.value = transactionsEntityItem
    }

}